<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel="stylesheet" href="css/common.css" type="text/css" />
        <link href="css/adminstyle.css" rel="stylesheet" type="text/css">
        <title> <?=Common::_t('page_admin_area')?></title>
        <script src="js/js.js">        </script>
        <script language="javascript" type="text/javascript" src="js/jquery-1.9.1.min.js"> </script>
        <script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
         <?$page_message = Common::_t('page_message');?>
    </head>
    <?$page_th = Common::_t('page_th');?>
    <?$page_selected = Common::_t('page_select');?>
    <?$page_search = Common::_t('page_search');?>
    <?$page_back = Common::_t('page_back');?>
    <?$page_add = Common::_t('page_add');?>
    <?$page_operation = Common::_t('page_operation');?>
    <body>
        <div id="man_zone">
            <div style="background-color:#FFFFFF ">
                <div class="search_condition">
                    <div style="margin-top:10px;margin-bottom:10px;">
                        <form method="get" action="">
                            		<?=getStr($page_th, 'name')?>
                            <input name="name" type="text" value="<?=getParamValue('name')?>" />
                            &nbsp;<?=getStr($page_th, 'teacher_no')?>
                            <input name="serial_number" type="text" value="<?=getParamValue('serial_number')?>" />
                            &nbsp;
                             <?=getStr($page_th,'class_date')?><input name="book_date" type="text"  onClick="WdatePicker()" value="<?=getParamValue('book_date')?>" />
						     <?=getStr($page_th,'class_time')?><select name="start_book_time">
						     	<?echo $bookTimeOptions?>
						     </select>
						    	 <?=getStr($page_th,'book_status')?>
						    	 <select name="teacher_openclass_status">
								<? echo $teacherOpenclassStatusOptions ?>
							</select>
                            &nbsp;
                            <input class="PublicBot" name="search" type="submit" value="<?=$page_search?>" />
                            &nbsp;
                        </form>
                    </div>
                </div>
                <br>
                <form method="get" id="form" action="">
                    <table width="98%" border="0" align="center" cellpadding="3" cellspacing="1"
                    class="tableborder">
                        <tr class="header">
                            <td width="7%">
                            </td>
                            <td width="10%">
                               <?=getStr($page_th,'class_time')?> 
                            </td>
                            <td width="10%">
                               <?=getStr($page_th,'name')?> 
                            </td>
                            <td width="11%">
                              <?=getStr($page_th,'teacher_no')?>
                            </td>
                            <td width="11%">
                                <?=getStr($page_th,'qq')?>
                            </td>
                            <td width="6%">
                                <?=getStr($page_th,'skype')?>
                            </td>
                            <td width="6%">
                               	 <?=getStr($page_th,'phone')?>
                            </td>
                            <td width="10%">
                               	 <?=getStr($page_th,'class_status')?>
                            </td>
                            <td width="10%">
                               	 <?=getStr($page_th,'book_status')?>
                            </td>
                            <td align="center" wdith="15%">
                               <?=$page_operation?>
                            </td>
                        </tr>
                        <? foreach($list as $v){ ?>
                            <tr bgcolor="#FFFFFF">
                                <td align="center">
                                    <input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>">
                                </td>
                                <td align="center">
                                    <?=$v['open_time_name']?>
                                </td>
                                <td align="center">
                                    <?=$v[ 'name']?>
                                </td>
                                <td align="center">
                                    <?=$v[ 'serial_number']?>
                                </td>
                                <td align="center">
                                        <?=$v[ 'qq']?>
                                </td>
                                <td align="center">
                                    <?=$v[ 'skype']?>
                                </td>
                                <td align="center">
                                    <?=$v[ 'phone']?>
                                </td>
                                <td align="center">
                                	<?if($v['confirm_status']==TEACHER_STATUS_CONFIRMED){?>
                                 		<?=$teacher_openclass_status_pair[$v['status']]?>
                                 	<?}?>
                                </td>
                                <td align="center">
                                	<?if($v['status']!=TEACHER_CLASS_STATUS_NOTBOOKING){?>
                                 	<a href="courseRecord_recordInfo.html?bookCourseId=<?=$v['book_course_id']?>" target="_blank"><?=$teacher_openclass_status_pair[$v['status']]?>
									
                                 	<?}else{?>
                                 	 	<?=getStr($page_th,'book_status_notbooking')?>
                                 	<?}?>
                                </td>
                                <td align="center">
               	                     <a href="teacher_add.html?id=<?=$v['id']?>" target="_blank">
                                        	<?=Common::_t('page_info')?>
                                     </a>
                                    <a href="teacher_course.html?teacherId=<?=$v['id']?>"  target="_blank"> <?=getStr($page_th, 'check_class_set')?> </a>
                                </td>
                            </tr>
                            <? } ?>
                                <tr bgcolor="#FFFFFF">
                                    <td align="center">
                                        <input type="checkbox" name="chkall" id="checkbox" onClick="CheckAll(this.form)">
                                    </td>
                                    <td colspan="9">
                                        &nbsp;&nbsp;&nbsp;
                                        <? echo $page; ?>
                                    </td>
                                </tr>
                    </table>
                </form>
            </div>
        </div>
    </body>

</html>